package com.fauks.study.hot.quartz;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Date;

public class MyJob implements Job {

    @Autowired
    private MyJobService myJobService;

    @Override
    public void execute(JobExecutionContext jobExecutionContext) {
        System.out.println("my Job start..." + new Date());
        myJobService.saveUser();
    }
}
